{extend name="public:layout" /}
{block name="title"}下游会员{/block}
{block name="head"}
{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> 下游会员</li>
            </ol>
        </div>
        <div class="ibox-content">
            <div class="row">
                <div class="col-sm-12">
                    <table class="table table-bordered" id="grid">
                        <tr>
                            <th>用户名</th>
                            <th>会员状态</th>
                            <th>注册时间</th>
                            <th>注册性别</th>
                            <th>会员生日</th>
                            <th width="120">操作</th>
                        </tr>
                        {volist name="list" id="vo"}
                        <tr>
                            <td>{$vo.username}</td>
                            <td>{switch name="vo.status" }
                                {case value="0"}禁用{/case}
                                {case value="1"}正常{/case}
                                {default /}
                                {/switch}</td>
                            <td>{:date("Y-m-d",$vo['create_time'])}</td>
                            <td>{$vo.status}
                                {switch name="vo.sex" }
                                {case value="0"}保密{/case}
                                {case value="1"}男{/case}
                                {case value="1"}女{/case}
                                {default /}
                                {/switch}</td>
                            <td>{:date("Y-m-d",$vo['birthday'])}</td>
                            <td>
                                <a href="{:url('edit',['uid'=>$vo['uid'],'status'=>$vo['status']])}">{eq name="vo['status']" value=0}启用{else/} &nbsp;&nbsp;&nbsp;禁用{/eq}</a>
                            </td>
                        </tr>
                        {/volist}
                    </table>
                    <div class="page-bar">{$list->render()}</div>
                    <div class="clearfix"></div>
                </div>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
</div>
{/block}
{block name="script"}{/block}